package demo_static;

public class OutClass {

    public int data1=1;
    private int data2=2;
    public final static int data3=3;

    static class InnerClass{
        public int data1=10;
        private int data2=20;
        public final static int data3=30;

        public void func2(){
            System.out.println(OutClass.data3);
            OutClass out=new OutClass();
            System.out.println(out.data1);
            System.out.println(out.data2);


            System.out.println(data1);
            System.out.println(this.data1);


        }

    }
}
